﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;

namespace Workflow.Web.Common
{
    public class ConfigReader
    {
        /// <summary>
        /// 用户验证Session名称(以作废！）
        /// </summary>
        public static string AuthorizeSessionName
        {
            get { return ConfigurationManager.AppSettings["AuthorizeSessionString"]; }
        }
        /// <summary>
        /// 用户名session节点（session）
        /// </summary>
        public static string AuthorizeSessionUserName
        {
            get { return ConfigurationManager.AppSettings["AuthorizeSessionUserName"]; }
        }
        /// <summary>
        /// 用户idsession节点（session）
        /// </summary>
        public static string AuthorizeSessionUserID
        {
            get { return ConfigurationManager.AppSettings["AuthorizeSessionUserID"]; }
        }
        /// <summary>
        /// 用户组session节点（session）
        /// </summary>
        public static string AuthorizeSessionUserGroup
        {
            get { return ConfigurationManager.AppSettings["AuthorizeSessionUserGroup"]; }
        }
        /// <summary>
        /// 用户角色session节点（session）
        /// </summary>
        public static string AuthorizeSessionUserRole
        {
            get { return ConfigurationManager.AppSettings["AuthorizeSessionUserRole"]; }
        }
        /// <summary>
        /// 用户组code
        /// </summary>
        public static string AuthorizeSessionUserGroupCode
        {
            get { return ConfigurationManager.AppSettings["AuthorizeSessionUserGroupCode"]; }
        }
        /// <summary>
        /// 用户角色code
        /// </summary>
        public static string AuthorizeSessionUserRoleCode
        {
            get { return ConfigurationManager.AppSettings["AuthorizeSessionUserRoleCode"]; }
        }

        /// <summary>
        /// cookie节点名称（cookie）
        /// </summary>
		public static string WorkFlowCookieName
        {
			get { return ConfigurationManager.AppSettings["WorkFlowCookieName"]; }
        }
        /// <summary>
        /// 用户名节点名称（cookie）
        /// </summary>
        public static string NameCookie
        {
            get { return ConfigurationManager.AppSettings["NameCookie"]; }
        }
        /// <summary>
        /// 用户密码节点名称（cookie）
        /// </summary>
        public static string PasswordCookie
        {
            get { return ConfigurationManager.AppSettings["PasswordCookie"]; }
        }
        /// <summary>
        /// 加密私钥
        /// </summary>
        public static string PrivateKey
        {
            get { return ConfigurationManager.AppSettings["PrivateKey"]; }
        }
        /// <summary>
        /// 系统版本号
        /// </summary>
		public static string WorkFlowVersion
        {
            get { return ConfigurationManager.AppSettings["WorkFlowVersion"]; }
        }
        /// <summary>
        /// 显示tiff文件的页面
        /// </summary>
        public static string TiffPage
        {
            get { return ConfigurationManager.AppSettings["Tiffpage"]; }
        }


    }
}